package com.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.lang.reflect.InvocationTargetException;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.beanutils.BeanUtils;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * 专著信息
 * 数据库通用操作实体类（普通增删改查）
 * @author 
 */
@TableName("zhuanzhu")
public class ZhuanzhuEntity<T> implements Serializable {
	private static final long serialVersionUID = 1L;
	
	public ZhuanzhuEntity() {
		
	}
	
	public ZhuanzhuEntity(T t) {
		try {
			BeanUtils.copyProperties(this, t);
		} catch (IllegalAccessException | InvocationTargetException e) {
			e.printStackTrace();
		}
	}

	/**
	 * 主键
	 */
	@TableId
	private Long id;
	/**
	 * 创建时间
	 */
	@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat
	private Date addtime;
	/**
	 * 专著名称
	 */
	
	
	private String zhuanzhumingcheng;
	/**
	 * 第几作者
	 */
	
	
	private String dijizuozhe;
	/**
	 * 该著作全部作者
	 */
	
	
	private String quanbuzuozhe;
	/**
	 * 出版单位
	 */
	
	
	private String chubandanwei;
	/**
	 * 著作类别
	 */
	
	
	private String zhuzuoleibie;
	/**
	 * ISBN
	 */
	
	
	private String isbn;
	/**
	 * 出版时间
	 */
	
	
	private String chubanshijian;
	/**
	 * 备注
	 */
	
	
	private String beizhu;
	/**
	 * 用户id
	 */
	
	
	private Long userid;
	/**
	 * 学号
	 */
	
	
	private String xuehao;
	
	public Long getId() {
        return id;
    }
    public void setId(Long id) {
        this.id = id;
    }
	public Date getAddtime() {
        return addtime;
    }
    public void setAddtime(Date addtime) {
        this.addtime = addtime;
    }
	public String getZhuanzhumingcheng() {
        return zhuanzhumingcheng;
    }
    public void setZhuanzhumingcheng(String zhuanzhumingcheng) {
        this.zhuanzhumingcheng = zhuanzhumingcheng;
    }
	public String getDijizuozhe() {
        return dijizuozhe;
    }
    public void setDijizuozhe(String dijizuozhe) {
        this.dijizuozhe = dijizuozhe;
    }
	public String getQuanbuzuozhe() {
        return quanbuzuozhe;
    }
    public void setQuanbuzuozhe(String quanbuzuozhe) {
        this.quanbuzuozhe = quanbuzuozhe;
    }
	public String getChubandanwei() {
        return chubandanwei;
    }
    public void setChubandanwei(String chubandanwei) {
        this.chubandanwei = chubandanwei;
    }
	public String getZhuzuoleibie() {
        return zhuzuoleibie;
    }
    public void setZhuzuoleibie(String zhuzuoleibie) {
        this.zhuzuoleibie = zhuzuoleibie;
    }
	public String getIsbn() {
        return isbn;
    }
    public void setIsbn(String isbn) {
        this.isbn = isbn;
    }
	public String getChubanshijian() {
        return chubanshijian;
    }
    public void setChubanshijian(String chubanshijian) {
        this.chubanshijian = chubanshijian;
    }
	public String getBeizhu() {
        return beizhu;
    }
    public void setBeizhu(String beizhu) {
        this.beizhu = beizhu;
    }
	public Long getUserid() {
        return userid;
    }
    public void setUserid(Long userid) {
        this.userid = userid;
    }
	public String getXuehao() {
        return xuehao;
    }
    public void setXuehao(String xuehao) {
        this.xuehao = xuehao;
    }
}